-- GENERATED SPELL FOR [Runewarden Deryan] --


function spell0_16362(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16362', 3000, 1)
end

function Sorts_16362(pUnit, Event)
local choix_sorts_16362 = math.random(0, 0)
if choix_sorts_16362 == 0 then
pUnit:RegisterEvent('spell0_16362', 1, 1)
end
end

function mob16362_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16362', math.random(1500, 3000), 1)
end

function mob16362_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16362_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16362_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16362, 1, 'mob16362_Action')
RegisterUnitEvent(16362, 2, 'mob16362_Leave')
RegisterUnitEvent(16362, 3, 'mob16362_Kill')
RegisterUnitEvent(16362, 4, 'mob16362_Die')
